package com.typeinfo.pets;

public class PetCount1 {
    public static void main(String[] args) {
		TypeCount counter=new TypeCount(Pet.class);
		for(Pet pet:Pets.arrayList(20)){
			System.out.print(pet.getClass().getSimpleName()+" ");
			counter.count(pet);
		}
		System.out.println(counter);
	}
}
